package com.designpattern.startertest;

import com.kpg.utils.sql.SqlSplit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: StarterTest
 * @author: kpg
 * @date: 2025/4/14 23:57
 * @Version: 1.0
 * @description:
 */
@RestController
public class StarterTest {
    @Autowired
    private SqlSplit sqlSplit;

    @GetMapping("/test")
    public String test(){
        String[] names = {"kpg","kpg2","kpg3","kpg4","kpg5","kpg6","kpg7","kpg8"};
        StringBuffer sb = sqlSplit.splitSql(names,"a.name");
        return sb.toString();
    }
}
